home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / powerd / modules.lha / modules / dos / notify.m < prev    next >
Encoding:
Text File  |  2001-12-31  |  739 b   |  40 lines

  1. MODULE    'exec/ports',
  2.             'exec/tasks'
  3.  
  4. CONST    NOTIFY_CLASS=$40000000,
  5.         NOTIFY_CODE=$1234
  6.  
  7. OBJECT NotifyMessage
  8.     ExecMessage:MN,
  9.     Class:ULONG,
  10.     Code:UWORD,
  11.     NReq:PTR TO NotifyRequest,
  12.     DoNotTouch:ULONG,
  13.     DoNotTouch2:ULONG
  14.  
  15. OBJECT NotifyRequest
  16.     Name:PTR TO UBYTE,
  17.     FullName:PTR TO UBYTE,
  18.     UserData:ULONG,
  19.     Flags:ULONG,
  20. -> a) next LONG is unioned with "task:PTR TO tc"
  21.     Port|Task:PTR TO MP,
  22.     SignalNum:UBYTE,
  23.     pada:UBYTE,
  24.     padb[2]:UBYTE,
  25.     reserved[4]:ULONG,
  26.     Msgcount:ULONG,
  27.     Handler:PTR TO MP
  28.  
  29. CONST    NRF_SEND_MESSAGE=1,
  30.         NRF_SEND_SIGNAL=2,
  31.         NRF_WAIT_REPLY=8,
  32.         NRF_NOTIFY_INITIAL=16,
  33.         NRF_MAGIC=$80000000,
  34.         NRB_SEND_MESSAGE=0,
  35.         NRB_SEND_SIGNAL=1,
  36.         NRB_WAIT_REPLY=3,
  37.         NRB_NOTIFY_INITIAL=4,
  38.         NRB_MAGIC=31,
  39.         NR_HANDLER_FLAGS=$FFFF0000
  40.